fix(install): openclaw.json 被极简化自愈(健康检查 + 更新路线也调) - #450
Merged
Conversation
根因:重跑时 ~/.openclaw/openclaw.json 已存在(openclaw 首启自动生成的极简 config,缺 models/agents.defaults)→ is_update=true → 更新路线不调 place_config_template → 极简 config 永远留着,agent 没有模型,半残。 .bak 环里最老那版就已经是极简的,说明完整 template 从没落过盘。 修: - place_config_template 加健康判定:现有 config 必须同时有 models + agents.defaults 才算健康;不健康 / 不存在 / --force → 用 template 覆盖 (旧文件备份到 .bak.<ts>)。template 缺失改报错(原来静默 no-op)。 - 更新路线开头也调 place_config_template(新增 'Checking config health' stage),这样被极简化的 config 重跑就能自愈;健康则保留不动。 - 更新步数 9→10。README step 8 同步改描述(去掉已删的运行时预填,加自愈说明)。
|
codes-factory-of-bg seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
根因
重跑时
~/.openclaw/openclaw.json已存在(openclaw 首启自动生成的极简 config,缺models/agents.defaults)→is_update=true→ 更新路线不调place_config_template→ 极简 config 永远留着,agent 没有模型,半残。.bak环里最老那版就已经是极简的,说明完整 template 从没落过盘。tarball 里的 template 是完整的(已验:13 个顶层 key、有 models、3 agent)。修
place_config_template加健康判定:现有 config 必须同时有models+agents.defaults才算健康;不健康 / 不存在 /--force→ 用 template 覆盖(旧文件备份到.bak.<ts>)。template 缺失改报错(原来静默 no-op)。place_config_template(新增 'Checking config health' stage),被极简化的 config 重跑就自愈;健康则保留不动。合后请触发 build-dist 重建 v5.6.0(Auto Release 已临时禁用)。